#pragma once

#include "tcservercore_global.h"
#include <Assert.h>
#include <QSqlDatabase>

namespace TCServer
{
	namespace Store
	{
		class TCSERVERCORE_EXPORT Database
		{
		private:
			Database();
		public:
			~Database();
		public:
			bool createDatabase();
// 			bool dropDatabase();
		public:
			static Database* instance();
		private:
			QSqlDatabase db;
        public:
            bool reconnect();
        };

	}
}